#!/usr/bin/env bash

#########################################
# Describe: 热替换脚本
# Version: v1.0
# Author: cz
#########################################

work_path=$1
pid=$2
file_name=$3
cd ~
user_work_path=`pwd`
real_path=${user_work_path}${work_path}
hotswap_command="java -Xbootclasspath/a:$real_path/tools.jar -jar $real_path/hotswap-jdk.jar $pid $real_path/$file_name"
$hotswap_command
